package com.woniuxy.secondhand.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 邮寄地址表
 * </p>
 *
 * @author chaohuijiang
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("POST")
@ApiModel(value="Post对象", description="邮寄地址表")
@KeySequence("SEC_POST")
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地址编号")
    @TableId(value = "POST_ID",type = IdType.INPUT)
    private Integer postId;

    @ApiModelProperty(value = "收件人")
    @TableField("UNAME")
    private String uname;

    @ApiModelProperty(value = "电话号码")
    @TableField("TEL")
    private String tel;

    @ApiModelProperty(value = "收件地址")
    @TableField("PADDRESS")
    private String paddress;

    @ApiModelProperty(value = "软删除")
    @TableField("FLAG")
    private Integer flag;

    @ApiModelProperty(value = "添加时间")
    @TableField("CREATETIME")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createtime;


}
